<style>
#searchViewStatus table tr[onclick]{
	cursor:pointer;
}
#searchViewStatus table tr[onclick]:hover{
	background:{{$highlight}};
	color:{{$highlighttext}};
}
</style>
<div id="searchViewStatus" class="area" style="width:900px;">
<form action="javascript:void(0)" onsubmit="submitForm(this,'komitenti.php','POST','setContent')">
	<span style="float:right; color:#aaa;">{{$info}}</span>
	<input type="hidden" name="a" value="search" />
	<input type="hidden" name="t" value="viewStatus" />

	<label class="left" for="filter_view_status">Želi da se vidi:</label>
	<select name="filter_view_status" id="filter_view_status">
		<option value="-1">---</option>
		{{%loop start vs_id}}
		<option value="{{$vs_id}}" {{$vs_selected}}>{{$vs_name}}</option>
		{{%loop end}}
	</select>
	
	<input type="submit" value="filter" />
</form>
<br clear="all" />
{{$comment_start}}
<ul class="letter_filter">
	{{%loop start page}}
	<li><a href="javascript:void(0)" id="{{$current_page}}" onclick="LoadRSDoc('komitenti.php?a=search&t=viewStatus&page={{$page}}&filter_view_status={{$page_vs}}','setContent')">{{$page}}</a></li>
	{{%loop end}}
</ul><br clear="all" />
<table width="100%">
	<tr class="head">
		<td width="5%">šifra</td>
		<td width="30%">naziv</td>
		<td>mesto</td>
		<td>adresa</td>
	</tr>
	{{%loop start komid}}
	<tr title="pogledajte detalje komitenta..." onclick="blankTarget('LoadRSDoc(\'komitenti.php?a=displayOne&id={{$komid}}\',\'setContent\')')">
		<td align="right">{{$komid}}</td>
		<td>{{$komname}}</td>
		<td>{{$mesto}}</td>
		<td>{{$adresa}}</td>
	</tr>
	{{%loop end}}
</table>
{{$comment_end}}
</div>